package com.example.common.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @author YanMing
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Entity
@Table(name = "t_log_exception")
@TableName("t_log_exception")
public class LogException extends Log implements Serializable {

    /**
     * 异常名
     */
    @Column
    private String exceptionName;
    /**
     * 异常信息
     */
    @Column(columnDefinition="CLOB", nullable=true)
    private String exceptionMessage;
    @Lob
    @Basic(fetch = FetchType.EAGER)
    public String getExceptionMessage() {
        return this.exceptionMessage;
    }
    public void setExceptionMessage(String exceptionMessage) {
        this.exceptionMessage = exceptionMessage;
    }


}
